<template>
  <div class="box flex flex-center">
    <img src="@/assets/imgs/nodata.png" alt="" />
  </div>
</template>

<script setup>
import router from "@/router/router";
import { generatorRouters, queryDictionaries } from "@/utils/index";
import allroutes from "@/router/allroutes";
const roles = JSON.parse(localStorage.getItem("roles") || "[]");
queryDictionaries(roles, allroutes).forEach((route) => {
  router.addRoute(route);
  // router.routes.push(route)
  // router.routes.concat([route])
  // router.routes.push(...route)
});
const path = location.href.split("/").at(-1);
router.push("/" + path);
</script>

<style lang="scss" scoped>
.box {
  @include square(100%);
}
</style>
